package com.dullwolf.common;


public class Result {

    //状态码(200成功，其他为失败)
    private int code;

    //成功为success，其他为失败原因
    private String message;

    //数据结果集
    private Object data;

    public Result(int code, String message) {
        this.code=code;
        this.message=message;
    }

    public Result(int code, String message, Object data) {
        this.code=code;
        this.message=message;
        this.data=data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
